//package org.jeecg.modules.wlhy.walletcfg.controller;
//
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import lombok.extern.slf4j.Slf4j;
//import org.jeecg.common.api.vo.Result;
//import org.jeecg.common.aspect.annotation.AutoLog;
//import org.jeecg.common.system.base.controller.JeecgController;
//import org.jeecg.modules.wlhy.walletcfg.entity.HyWalletCfg;
//import org.jeecg.modules.wlhy.walletcfg.service.IHyWalletCfgService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
// /**
// * @Description: hy_wallet_cfg
// * @Author: jeecg-boot
// * @Date:   2022-03-11
// * @Version: V1.0
// */
//@Api(tags="hy_wallet_cfg")
//@RestController
//@RequestMapping("/walletcfg/hyWalletCfg")
//@Slf4j
//public class HyWalletCfgController extends JeecgController<HyWalletCfg, IHyWalletCfgService> {
//	@Autowired
//	private IHyWalletCfgService hyWalletCfgService;
//
////	/**
////	 * 分页列表查询
////	 *
////	 * @param hyWalletCfg
////	 * @param pageNo
////	 * @param pageSize
////	 * @param req
////	 * @return
////	 */
////	@ApiOperation(value="hy_wallet_cfg-分页列表查询", notes="hy_wallet_cfg-分页列表查询")
////	@GetMapping(value = "/list")
////	public Result<?> queryPageList(HyWalletCfg hyWalletCfg,
////								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
////								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
////								   HttpServletRequest req) {
////		QueryWrapper<HyWalletCfg> queryWrapper = QueryGenerator.initQueryWrapper(hyWalletCfg, req.getParameterMap());
////		Page<HyWalletCfg> page = new Page<HyWalletCfg>(pageNo, pageSize);
////		IPage<HyWalletCfg> pageList = hyWalletCfgService.page(page, queryWrapper);
////		return Result.OK(pageList);
////	}
//
//	/**
//	 *   添加
//	 *
//	 * @param hyWalletCfg
//	 * @return
//	 */
//	@AutoLog(value = "hy_wallet_cfg-添加")
//	@ApiOperation(value="hy_wallet_cfg-添加", notes="hy_wallet_cfg-添加")
//	@PostMapping(value = "/add")
//	public Result<?> add(@RequestBody HyWalletCfg hyWalletCfg) {
//		hyWalletCfgService.save(hyWalletCfg);
//		return Result.OK("添加成功！");
//	}
//
//	/**
//	 *  编辑
//	 *
//	 * @param hyWalletCfg
//	 * @return
//	 */
//	@AutoLog(value = "hy_wallet_cfg-编辑")
//	@ApiOperation(value="hy_wallet_cfg-编辑", notes="hy_wallet_cfg-编辑")
//	@PutMapping(value = "/edit")
//	public Result<?> edit(@RequestBody HyWalletCfg hyWalletCfg) {
//		hyWalletCfgService.updateById(hyWalletCfg);
//		return Result.OK("编辑成功!");
//	}
//
////	/**
////	 *   通过id删除
////	 *
////	 * @param id
////	 * @return
////	 */
////	@AutoLog(value = "hy_wallet_cfg-通过id删除")
////	@ApiOperation(value="hy_wallet_cfg-通过id删除", notes="hy_wallet_cfg-通过id删除")
////	@DeleteMapping(value = "/delete")
////	public Result<?> delete(@RequestParam(name="id",required=true) String id) {
////		hyWalletCfgService.removeById(id);
////		return Result.OK("删除成功!");
////	}
////
////	/**
////	 *  批量删除
////	 *
////	 * @param ids
////	 * @return
////	 */
////	@AutoLog(value = "hy_wallet_cfg-批量删除")
////	@ApiOperation(value="hy_wallet_cfg-批量删除", notes="hy_wallet_cfg-批量删除")
////	@DeleteMapping(value = "/deleteBatch")
////	public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
////		this.hyWalletCfgService.removeByIds(Arrays.asList(ids.split(",")));
////		return Result.OK("批量删除成功!");
////	}
////
////	/**
////	 * 通过id查询
////	 *
////	 * @param id
////	 * @return
////	 */
////	@ApiOperation(value="hy_wallet_cfg-通过id查询", notes="hy_wallet_cfg-通过id查询")
////	@GetMapping(value = "/queryById")
////	public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
////		HyWalletCfg hyWalletCfg = hyWalletCfgService.getById(id);
////		if(hyWalletCfg==null) {
////			return Result.error("未找到对应数据");
////		}
////		return Result.OK(hyWalletCfg);
////	}
////
////    /**
////    * 导出excel
////    *
////    * @param request
////    * @param hyWalletCfg
////    */
////    @RequestMapping(value = "/exportXls")
////    public ModelAndView exportXls(HttpServletRequest request, HyWalletCfg hyWalletCfg) {
////        return super.exportXls(request, hyWalletCfg, HyWalletCfg.class, "hy_wallet_cfg");
////    }
////
////    /**
////      * 通过excel导入数据
////    *
////    * @param request
////    * @param response
////    * @return
////    */
////    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
////    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
////        return super.importExcel(request, response, HyWalletCfg.class);
////    }
//
//}
